package com.fottas.adware.portal.controller;

import com.fottas.adware.common.api.CommonResult;
import com.fottas.adware.portal.domain.HomeContentResult;
import com.fottas.adware.portal.service.HomeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 首页内容管理Controller
 */
@Controller
@Api(tags = "HomeController", description = "首页内容管理")
@RequestMapping("/home")
public class HomeController {
    @Autowired
    private HomeService homeService;

    @RequestMapping("")
    @ResponseBody
    public CommonResult content(){
        HomeContentResult content = homeService.content();
        return CommonResult.success(content);
    }


}
